/**
 * @file: vscode
 * @author: v_xieyejiang
 * @Date: 2018-12-10 11:12:37
 * @Last Modified by: v_xieyejiang
 * @Last Modified time: 2018-12-12 19:48:20
 */
import Vue from 'vue';
import App from '@/views/App.vue';
import router from '@/router';
import store from '@/store';
import GlobalComponents from '@/components';
import ElementUI from 'element-ui';
import '@/assets/css/style.css';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(GlobalComponents);
Vue.use(ElementUI, {size: 'small', zIndex: 2000});

Vue.config.productionTip = false;

// const sw = process.env.NODE_ENV === 'development' ? 'unregister' : 'register';
// import(`@/utils/${sw}`);

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app');
